/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package howework.demo02;
import java.util.List;
import java.util.ArrayList;

/**
 *
 * @author Administrator
 */
public class PersonTest {
    public static void main(String[] args) {
        Person p1 = new Person("张三","0771-2085011","长岗大道93号");
        Person p2 = new Person("李四","0771-2085012","长岗大道92号");
        Person p3 = new Person("王五","0771-2085033","长岗大道94号");
        
       List l = new ArrayList();
       l.add(p1);
       l.add(p2);
       l.add(p3);
       
       System.out.println("Arraylist的元素是：");
       System.out.println(l);
       
    }


    }


